import { type FC } from 'react';
import { RouterProvider, createBrowserRouter } from "react-router-dom";
import { routes } from './routes';
import { AppAuth } from '@/auth/auth';
import './global.less';

const router = createBrowserRouter([{
  path: '/',
  children: routes,
  element: <AppAuth />
}]);

const App: FC = () => {
  return <RouterProvider router={router} />;
}

export default App;